MSG=True
while MSG:
    input_list=('请输入第一位数字: ','请输入运算符: ','请输入第二位数字: ')
    output_dic={}
    for k,v in enumerate(input_list):
        output_dic[f'op{k}']=input(v)


    if output_dic['op1'] == '+':
        output_dic['op3'] = int(output_dic['op0'])+int(output_dic['op2'])
    elif output_dic['op1'] == '-':
        output_dic['op3'] = int(output_dic['op0'])-int(output_dic['op2'])
    elif output_dic['op1'] == '*':
        output_dic['op3'] = int(output_dic['op0'])*int(output_dic['op2'])
    elif output_dic['op1'] == '/':
        output_dic['op3'] = int(output_dic['op0'])/int(output_dic['op2'])

    else:
        print('输入错误')
    print('{}{}{}={}'.format(output_dic['op0'],output_dic['op1'],output_dic['op2'],output_dic['op3']))
    MSG=input('是否继续输入 y/n   ')
    if MSG == 'n':
        MSG==False
